package com.realife.mbplustest.service.impl;

import com.realife.mbplustest.entity.TbCategory;
import com.realife.mbplustest.mapper.TbCategoryMapper;
import com.realife.mbplustest.service.TbCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品类目表，类目和商品(spu)是一对多关系，类目与品牌是多对多关系 服务实现类
 * </p>
 *
 * @author Albert
 * @since 2020-05-30
 */
@Service
public class TbCategoryServiceImpl extends ServiceImpl<TbCategoryMapper, TbCategory> implements TbCategoryService {

    @Autowired
    private TbCategoryMapper tbCategoryMapper;



    @Override
    public List<TbCategory> queryAllCategory() {

        List<TbCategory> tbCategories = this.tbCategoryMapper.selectList(null);
        return tbCategories;
    }
}
